import request from '@/utils/request'

export function showPaymentList(query) {
  return request({
    url: '/payment/show',
    method: 'get',
    params: query
  })
}

export function deletePayment(paymentId) {
  return request({
    url: '/payment/remove',
    method: 'get',
    params: { 'paymentId': paymentId }
  })
}

export function savePayment(data) {
  return request({
    url: '/payment/save',
    method: 'post',
    data
  })
}

export function showDeliveryTypeList(query) {
  return request({
    url: '/dt/show',
    method: 'get',
    params: query
  })
}

export function deleteDeliveryType(deliveryTypeId) {
  return request({
    url: '/dt/remove',
    method: 'get',
    params: { 'deliveryTypeId': deliveryTypeId }
  })
}

export function saveDeliveryType(data) {
  return request({
    url: '/dt/save',
    method: 'post',
    data
  })
}

